#ifndef MINING_WRAPPER
#define MINING_WRAPPER
extern "C"
{
#define MAX_TREE_SIZE	256
#define	MAX_OPERANDS	23
#define NULL_LINK	-1

// enumerated operators
typedef enum{ OP_TRUE=1, OP_FALSE=0, AND=-1, OR=-2, NOT=-3, BETWEEN=-4 }OPERATOR;

/*typedef struct 
{
	char *pname;
	int id;
	PROJECTION *ptr;
}PROJECTION;*/


typedef struct NODE
{
        int nodeIndex;
        NODE *leftLink;
        NODE *rightLink;
	char *name;
	int op;
	long int range1;
	long int range2;
	unsigned char *value;
	int weight;
}NODE;

int addExpr(char *opcname, int optr, long int r1, long int r2, unsigned char *operand, int type, int total);
int addNode(NODE **q, NODE *p);
}	
#endif
